// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     : http://10.144.24.48:8888/systemframe/services/Interface4xzpayService?wsdl
// Encoding : UTF-8
// Version  : 1.0
// (2014-07-04 18:15:53 - - $Rev: 10138 $)
// ************************************************************************ //

unit Interface4xzpayService;

interface

uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;

type

  // ************************************************************************ //
  // The following types, referred to in the WSDL document are not being represented
  // in this file. They are either aliases[@] of other types represented or were referred
  // to but never[!] declared in the document. The types from the latter category
  // typically map to predefined/known XML or Borland types; however, they could also 
  // indicate incorrect WSDL documents that failed to declare or import a schema type.
  // ************************************************************************ //
  // !:string          - "http://schemas.xmlsoap.org/soap/encoding/"[]


  // ************************************************************************ //
  // Namespace : http://interface4xz.foundercy.com
  // transport : http://schemas.xmlsoap.org/soap/http
  // style     : rpc
  // binding   : Interface4xzpayServiceSoapBinding
  // service   : Interface4xzWebServiceService
  // port      : Interface4xzpayService
  // URL       : http://10.144.24.48:8888/systemframe/services/Interface4xzpayService
  // ************************************************************************ //
  Interface4xzWebService = interface(IInvokable)
  ['{35D68B7A-4204-6532-C553-CB8E4A388C18}']
    function  getinfo(const en_code: WideString; const qsrq: WideString; const jsrq: WideString; const jhqj: WideString): WideString; stdcall;
    function  setSaveinfo(const info: WideString): WideString; stdcall;
    procedure getJjForWorkFLow; stdcall;
  end;

function GetInterface4xzWebService(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): Interface4xzWebService;


implementation

function GetInterface4xzWebService(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): Interface4xzWebService;
const
  defWSDL = 'http://10.144.24.48:8888/systemframe/services/Interface4xzpayService?wsdl';
  defURL  = 'http://10.144.24.48:8888/systemframe/services/Interface4xzpayService';
  defSvc  = 'Interface4xzWebServiceService';
  defPrt  = 'Interface4xzpayService';
var
  RIO: THTTPRIO;
begin
  Result := nil;
  if (Addr = '') then
  begin
    if UseWSDL then
      Addr := defWSDL
    else
      Addr := defURL;
  end;
  if HTTPRIO = nil then
    RIO := THTTPRIO.Create(nil)
  else
    RIO := HTTPRIO;
  try
    Result := (RIO as Interface4xzWebService);
    if UseWSDL then
    begin
      RIO.WSDLLocation := Addr;
      RIO.Service := defSvc;
      RIO.Port := defPrt;
    end else
      RIO.URL := Addr;
  finally
    if (Result = nil) and (HTTPRIO = nil) then
      RIO.Free;
  end;
end;


initialization
  InvRegistry.RegisterInterface(TypeInfo(Interface4xzWebService), 'http://interface4xz.foundercy.com', 'UTF-8');
  InvRegistry.RegisterDefaultSOAPAction(TypeInfo(Interface4xzWebService), '');

end.